<div class="header">
  <div class="main">
    <a class="logo" href="{:U('Home/Index/index')}" title="Fly">首页</a>
    <div class="nav">
      <a class="nav-this" href="{:U('User/Index/home?u='.session('uid'))}">
        <i class="iconfont icon-wenda"></i>我的问答
      </a>
      <a class="nav-this" href="/User/Index/index?p=1">
        <i class="iconfont icon-ui"></i>发帖管理
      </a>
    </div>

    <div class="nav-user">
      <empty name="name">
        <!-- 未登入状态 -->
        <a class="unlogin" href="#">
          <i class="iconfont icon-touxiang"></i>
        </a>
        <span>
          <a href="/User/Index/login">登入</a>
          <a href="/User/Index/reg">注册</a>
        </span>
        <!--  <p class="out-login">
	        <a href="#" class="iconfont icon-qq" title="QQ登入"></a>
	        <a href="#" class="iconfont icon-weibo" title="微博登入"></a>
	      </p> -->
      </empty>

      <notempty name="name">
        <!-- 登入后的状态 -->
        <a class="avatar" href="/User/Index/home?u={$Think.session.uid}">
          <img src="{$Think.cookie.user_image}">
          <cite>{$Think.cookie.user_name}</cite>
          <i>VIP2</i>
        </a>
        <div class="nav">
          <a href="#">
            <i class="iconfont icon-shezhi"></i>设置</a>
          <a href="/User/Index/logout">
            <i class="iconfont icon-tuichu" style="top: 0; font-size: 22px;"></i>退了
          </a>
        </div>
      </notempty>
    </div>
  </div>
</div>